#include "gofgame/dungeonkeeper/game/skill/SkillAnimateManager.h"


using namespace gofgame::dungeonkeeper::game::skill;

static SkillAnimateManager *sam = nullptr;

SkillAnimateManager * SkillAnimateManager::sharedSkillAnimateManager(){
	if(sam == nullptr) {
		sam = new SkillAnimateManager();
		sam->init();
		return sam;
	} else {
		return sam;
	}
}

void SkillAnimateManager::init() {
	ap = AnimatePacker::getInstance();
	ap->loadAnimations("Skill/skillAnmi.xml");
}

CCAnimate * SkillAnimateManager::getAnimateByName(char *name) {
	return ap->getAnimate(name);
}

CCSequence * SkillAnimateManager::getSequenceByName(char *name) {
	return ap->getSequence(name);
}
CCAnimation * SkillAnimateManager::getAnimationByName(char *name){
	return ap->getAnimation(name);
}


